package com.soar.recruitment.common.util;

import android.widget.Toast;

import com.soar.recruitment.common.app.SOARBaseApplication;


public class MyToast {

    private static Toast mToast;

    private static Toast mToasty;

    public static void show(String text){
        if (mToast != null) {
            mToast.cancel();
        }
        mToast = Toast.makeText(SOARBaseApplication.getInstance(), text, Toast.LENGTH_SHORT);
        mToast.show();
    }

    public static void showLong(String text){
        if (mToast != null) {
            mToast.cancel();
        }
        mToast = Toast.makeText(SOARBaseApplication.getInstance(), text, Toast.LENGTH_LONG);
        mToast.show();
    }

}
